/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gestores.iteracao.manipuladores.marcadagua;

import java.awt.Color;
import java.awt.Graphics2D;

/**
 * Classe DrawRectangle
 *
 * Descrição:
 *
 *
 * @author blaster
 */
public class DrawRectangle implements IDrawable {

    private int x, y, w, h;
    private Color cor;

    public DrawRectangle(int x, int y, int w, int h, Color cor) {
        this.x = x;
        this.y = y;
        this.w = w;
        this.h = h;
        this.cor = cor;
    }

    public void draw(Graphics2D g) {
        g.setColor(cor);
        g.fillRect(x, y, w, h);
    }

    public void draw(Graphics2D g, int width, int height) {
        g.setColor(cor);
        g.fillRect(x, y, w, h);
    }

    public boolean valida() {
return true;
    }
}
